﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B47 RID: 2887
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MKPONJCPPDI : IMessage<MKPONJCPPDI>, IMessage, IEquatable<MKPONJCPPDI>, IDeepCloneable<MKPONJCPPDI>, IBufferMessage
	{
		// Token: 0x17002467 RID: 9319
		// (get) Token: 0x060080FA RID: 33018 RVA: 0x001583B0 File Offset: 0x001565B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MKPONJCPPDI> Parser
		{
			get
			{
				return MKPONJCPPDI._parser;
			}
		}

		// Token: 0x17002468 RID: 9320
		// (get) Token: 0x060080FB RID: 33019 RVA: 0x001583B7 File Offset: 0x001565B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MKPONJCPPDIReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002469 RID: 9321
		// (get) Token: 0x060080FC RID: 33020 RVA: 0x001583C9 File Offset: 0x001565C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MKPONJCPPDI.Descriptor;
			}
		}

		// Token: 0x060080FD RID: 33021 RVA: 0x001583D0 File Offset: 0x001565D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MKPONJCPPDI()
		{
		}

		// Token: 0x060080FE RID: 33022 RVA: 0x001583D8 File Offset: 0x001565D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MKPONJCPPDI(MKPONJCPPDI other) : this()
		{
			this.rewardDisplayType_ = other.rewardDisplayType_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060080FF RID: 33023 RVA: 0x00158409 File Offset: 0x00156609
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MKPONJCPPDI Clone()
		{
			return new MKPONJCPPDI(this);
		}

		// Token: 0x1700246A RID: 9322
		// (get) Token: 0x06008100 RID: 33024 RVA: 0x00158411 File Offset: 0x00156611
		// (set) Token: 0x06008101 RID: 33025 RVA: 0x00158419 File Offset: 0x00156619
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RewardDisplayType
		{
			get
			{
				return this.rewardDisplayType_;
			}
			set
			{
				this.rewardDisplayType_ = value;
			}
		}

		// Token: 0x1700246B RID: 9323
		// (get) Token: 0x06008102 RID: 33026 RVA: 0x00158422 File Offset: 0x00156622
		// (set) Token: 0x06008103 RID: 33027 RVA: 0x0015842A File Offset: 0x0015662A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x06008104 RID: 33028 RVA: 0x00158433 File Offset: 0x00156633
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MKPONJCPPDI);
		}

		// Token: 0x06008105 RID: 33029 RVA: 0x00158441 File Offset: 0x00156641
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MKPONJCPPDI other)
		{
			return other != null && (other == this || (this.RewardDisplayType == other.RewardDisplayType && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008106 RID: 33030 RVA: 0x00158480 File Offset: 0x00156680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RewardDisplayType != 0U)
			{
				num ^= this.RewardDisplayType.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008107 RID: 33031 RVA: 0x001584D8 File Offset: 0x001566D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008108 RID: 33032 RVA: 0x001584E0 File Offset: 0x001566E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008109 RID: 33033 RVA: 0x001584EC File Offset: 0x001566EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RewardDisplayType != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.RewardDisplayType);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600810A RID: 33034 RVA: 0x00158548 File Offset: 0x00156748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RewardDisplayType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RewardDisplayType);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600810B RID: 33035 RVA: 0x001585A0 File Offset: 0x001567A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MKPONJCPPDI other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RewardDisplayType != 0U)
			{
				this.RewardDisplayType = other.RewardDisplayType;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600810C RID: 33036 RVA: 0x001585F0 File Offset: 0x001567F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600810D RID: 33037 RVA: 0x001585FC File Offset: 0x001567FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.RewardDisplayType = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003176 RID: 12662
		private static readonly MessageParser<MKPONJCPPDI> _parser = new MessageParser<MKPONJCPPDI>(() => new MKPONJCPPDI());

		// Token: 0x04003177 RID: 12663
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003178 RID: 12664
		public const int RewardDisplayTypeFieldNumber = 10;

		// Token: 0x04003179 RID: 12665
		private uint rewardDisplayType_;

		// Token: 0x0400317A RID: 12666
		public const int LevelFieldNumber = 14;

		// Token: 0x0400317B RID: 12667
		private uint level_;
	}
}
